package com.mmall.common;

/**
 * @Classname ResponseCode
 * @Description TODO
 * @Date 2020/8/11 20:28
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
public enum ResponseCode {

    SUCCESS(0, "SUCCESS"),
    ERROR(1, "ERROR"),
    ILLEGAL_ARGUMENT(2, "ILLEGAL_ARGUMENT"),
    NEED_LOGIN(10, "NEED_LOGIN");

    private  final int code;
    private final String codeMsg;

    ResponseCode(int code, String codeMsg){
        this.code = code;
        this.codeMsg = codeMsg;
    }

    public int getCode(){
        return code;
    }
    public String codeMsg(){
        return codeMsg;
    }

}
